﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using StoreManagementSystem;
using StoreManagementSystem.DomainObjects;

namespace StoreTester
{
    [TestFixture]
    class ProductTester
    {
        [Test]
        public void CreateProduct()
        {
            Product windexOriginal = new Product();
            Assert.AreEqual(windexOriginal.id, 0);
            windexOriginal.Name = "LoloololCameron";
            Assert.AreEqual("LoloololCameron", windexOriginal.Name);
            Brand Windex = new Brand(5, "Windex");
            windexOriginal.Brand = Windex;
            Assert.AreSame(windexOriginal.Brand, Windex);
        }
    }
}